let fwqkllphOpt = {
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {
  	show: false
  },
  grid: {
    left: '7%',
    right: '4%',
    bottom: '3%',
    top:'5%',
    containLabel: true
  },
  xAxis: [
    {
      type: 'category',
      axisLabel:{
      	interval: 0,
      	rotate: 40,
      	fontSize: 10
      },
      axisTick:{
      	show: false
      },
      data: []
    }
  ],
  yAxis: [
    {
      type: 'value',
      splitLine:{
      	lineStyle:{
      		type: 'dashed',
      		color: 'rgba(39,163,212,0.52)'
      	}
      },
      axisTick:{
      	show: false
      },
      axisLine:{
      	show: false
      }
    }
  ],
  series: [
    {
      name: '服务区客流量排行',
      type: 'bar',
      stack: 'Ad',
      emphasis: {
        focus: 'series'
      },
      barWidth:18,
      itemStyle:{
      	color: '#70BCF8'
      },
      data: []
    }
  ]
};

refreshfwqkllph();

function refreshfwqkllph(){
	
	fwqkllphOpt.xAxis[0].data = [];
	fwqkllphOpt.series[0].data = [];
	
	for (var i = 0;i < 10;i++) {
		fwqkllphOpt.xAxis[0].data.push("滦州服务区（南区）");
		let value = parseInt(Math.random()*100);
		let total = value + parseInt(Math.random()*100);
		fwqkllphOpt.series[0].data.push(value);
	}
	echarts.init(document.getElementById('fwqkllph')).setOption(fwqkllphOpt, true);
}


//显示前10 和 后 10
const fwqkllphChange = function(index){
	refreshfwqkllph();
}
